home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Core Concepts in Art 2
/
Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso
/
mac
/
media
/
search.swf
/
scripts
/
DefineButton2_60
/
BUTTONCONDACTION on(release).as
next >
Wrap
Text File
|
2003-10-12
|
1KB
|
44 lines
on(release){
var count = 0;
i = 0;
while(i < chapterArray[theChapter].length)
{
titlesHolder["titles" + i].pointer._visible = 0;
theTextColor = new Color("titlesHolder.titles" + i + ".title");
theChapterColor = new Color("titlesHolder.titles" + i + ".chapterHolder.chapNum");
theTextColor.setRGB(6710886);
theChapterColor.setRGB(6710886);
j = 0;
while(j < listTotal)
{
if(listItemsHolder["item" + j].title == titleBuilder_mc.titleArray[i])
{
count++;
c = j;
while(c < listTotal)
{
b = 0;
while(b < 6)
{
listItemsHolder["item" + c][titleBuilder_mc.variables[b]] = listItemsHolder["item" + (c + 1)][titleBuilder_mc.variables[b]];
b++;
}
c++;
}
}
j++;
}
i++;
}
listTotal -= count;
if(listTotal <= 10)
{
up_btn._visible = 0;
down_btn._visible = 0;
listItemsHolder._y = 28;
}
this["chp" + theChapter].splice(0,chapterArray[theChapter].length);
deselect_btn._visible = 0;
select_btn._visible = 1;
}